layui.use('form', function () {
    var form = layui.form;

    var s = localStorage.getItem("com");
    console.log(s)

    //关闭所有的iframe层
    layer.closeAll('iframe');

// 审核驳回 修改
    form.on('submit(qd)',function (obj){
        console.log(obj.field.feedbackdetails);
        $.ajax({
            type: 'post',
            url: '/commodityReview/deleteReject',
            data: {
                "commodityId":s,
                "feedbackdetails":obj.field.feedbackdetails
            },
            dataType: 'json',
            success: function (res) {
                parent.close();
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            },
            error: function (e) {
                console.log("失败");
                layer.msg('审核未通过');
                console.log(e);
            },
        })
    })
})